package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.ShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController("userShopController")
@Api(tags = "店铺管理")
@RequestMapping("/user/shop")
@Slf4j
public class ShopController {

    @Resource
    private ShopService shopService;

    @GetMapping("/status")
    @ApiOperation("获取店铺状态")
    public Result<Integer> getShopStatus() {
        // 获取店铺状态信息
        return Result.success(shopService.getShopStatus());
    }
}
